package com.unionpay.mpds.model;

// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * PosCom entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "T_POSCOM", uniqueConstraints = @UniqueConstraint(columnNames = "COM_INDEX"))
public class PosCom implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 8309389290300634197L;
	private String comIndex;
	private String comName;
	private String comTransgateway;
	private String comTransapn;
	private String comTransapnusr;
	private String comTransapnpwd;
	private String comRemark;
	private String comManftppwd;
	private String comManftpusr;
	private String comManftpport;
	private String comMantel1;
	private String comManport;
	private String comManip;
	private String comManapnpwd;
	private String comManapnusr;
	private String comManapn;
	private String comMangateway;
	private String comTranstel3;
	private String comTranstel2;
	private String comTranstel1;
	private String comTransport;
	private String comTransip;

	// Constructors

	/** default constructor */
	public PosCom() {
	}

	/** minimal constructor */
	public PosCom(String comIndex, String comName) {
		this.comIndex = comIndex;
		this.comName = comName;
	}

	/** full constructor */
	public PosCom(String comIndex, String comName, String comTransgateway,
			String comTransapn, String comTransapnusr, String comTransapnpwd,
			String comRemark, String comManftppwd, String comManftpusr,
			String comManftpport, String comMantel1, String comManport, String comManip,
			String comManapnpwd, String comManapnusr, String comManapn,
			String comMangateway, String comTranstel3, String comTranstel2,
			String comTranstel1, String comTransport, String comTransip) {
		this.comIndex = comIndex;
		this.comName = comName;
		this.comTransgateway = comTransgateway;
		this.comTransapn = comTransapn;
		this.comTransapnusr = comTransapnusr;
		this.comTransapnpwd = comTransapnpwd;
		this.comRemark = comRemark;
		this.comManftppwd = comManftppwd;
		this.comManftpusr = comManftpusr;
		this.comManftpport = comManftpport;
		this.comMantel1 = comMantel1;
		this.comManport = comManport;
		this.comManip = comManip;
		this.comManapnpwd = comManapnpwd;
		this.comManapnusr = comManapnusr;
		this.comManapn = comManapn;
		this.comMangateway = comMangateway;
		this.comTranstel3 = comTranstel3;
		this.comTranstel2 = comTranstel2;
		this.comTranstel1 = comTranstel1;
		this.comTransport = comTransport;
		this.comTransip = comTransip;
	}

	// Property accessors

	@Id
	@Column(name = "COM_INDEX", unique = true, nullable = false, length = 3)
	public String getComIndex() {
		return this.comIndex;
	}

	public void setComIndex(String comIndex) {
		this.comIndex = comIndex;
	}

	@Column(name = "COM_NAME", nullable = false, length = 20)
	public String getComName() {
		return this.comName;
	}

	public void setComName(String comName) {
		this.comName = comName;
	}

	@Column(name = "COM_TRANSGATEWAY", length = 15)
	public String getComTransgateway() {
		return this.comTransgateway;
	}

	public void setComTransgateway(String comTransgateway) {
		this.comTransgateway = comTransgateway;
	}

	@Column(name = "COM_TRANSAPN", length = 20)
	public String getComTransapn() {
		return this.comTransapn;
	}

	public void setComTransapn(String comTransapn) {
		this.comTransapn = comTransapn;
	}

	@Column(name = "COM_TRANSAPNUSR", length = 30)
	public String getComTransapnusr() {
		return this.comTransapnusr;
	}

	public void setComTransapnusr(String comTransapnusr) {
		this.comTransapnusr = comTransapnusr;
	}

	@Column(name = "COM_TRANSAPNPWD", length = 30)
	public String getComTransapnpwd() {
		return this.comTransapnpwd;
	}

	public void setComTransapnpwd(String comTransapnpwd) {
		this.comTransapnpwd = comTransapnpwd;
	}

	@Column(name = "COM_REMARK", length = 100)
	public String getComRemark() {
		return this.comRemark;
	}

	public void setComRemark(String comRemark) {
		this.comRemark = comRemark;
	}

	@Column(name = "COM_MANFTPPWD", length = 30)
	public String getComManftppwd() {
		return this.comManftppwd;
	}

	public void setComManftppwd(String comManftppwd) {
		this.comManftppwd = comManftppwd;
	}

	@Column(name = "COM_MANFTPUSR", length = 30)
	public String getComManftpusr() {
		return this.comManftpusr;
	}

	public void setComManftpusr(String comManftpusr) {
		this.comManftpusr = comManftpusr;
	}

	@Column(name = "COM_MANFTPPORT", length = 6)
	public String getComManftpport() {
		return comManftpport;
	}

	public void setComManftpport(String comManftpport) {
		this.comManftpport = comManftpport;
	}

	@Column(name = "COM_MANTEL1", length = 14)
	public String getComMantel1() {
		return this.comMantel1;
	}

	public void setComMantel1(String comMantel1) {
		this.comMantel1 = comMantel1;
	}

	@Column(name = "COM_MANPORT", length = 16)
	public String getComManport() {
		return this.comManport;
	}

	public void setComManport(String comManport) {
		this.comManport = comManport;
	}

	@Column(name = "COM_MANIP", length = 15)
	public String getComManip() {
		return this.comManip;
	}

	public void setComManip(String comManip) {
		this.comManip = comManip;
	}

	@Column(name = "COM_MANAPNPWD", length = 30)
	public String getComManapnpwd() {
		return this.comManapnpwd;
	}

	public void setComManapnpwd(String comManapnpwd) {
		this.comManapnpwd = comManapnpwd;
	}

	@Column(name = "COM_MANAPNUSR", length = 30)
	public String getComManapnusr() {
		return this.comManapnusr;
	}

	public void setComManapnusr(String comManapnusr) {
		this.comManapnusr = comManapnusr;
	}

	@Column(name = "COM_MANAPN", length = 20)
	public String getComManapn() {
		return this.comManapn;
	}

	public void setComManapn(String comManapn) {
		this.comManapn = comManapn;
	}

	@Column(name = "COM_MANGATEWAY", length = 15)
	public String getComMangateway() {
		return this.comMangateway;
	}

	public void setComMangateway(String comMangateway) {
		this.comMangateway = comMangateway;
	}

	@Column(name = "COM_TRANSTEL3", length = 14)
	public String getComTranstel3() {
		return this.comTranstel3;
	}

	public void setComTranstel3(String comTranstel3) {
		this.comTranstel3 = comTranstel3;
	}

	@Column(name = "COM_TRANSTEL2", length = 14)
	public String getComTranstel2() {
		return this.comTranstel2;
	}

	public void setComTranstel2(String comTranstel2) {
		this.comTranstel2 = comTranstel2;
	}

	@Column(name = "COM_TRANSTEL1", length = 14)
	public String getComTranstel1() {
		return this.comTranstel1;
	}

	public void setComTranstel1(String comTranstel1) {
		this.comTranstel1 = comTranstel1;
	}

	@Column(name = "COM_TRANSPORT", length = 6)
	public String getComTransport() {
		return this.comTransport;
	}

	public void setComTransport(String comTransport) {
		this.comTransport = comTransport;
	}

	@Column(name = "COM_TRANSIP", length = 15)
	public String getComTransip() {
		return this.comTransip;
	}

	public void setComTransip(String comTransip) {
		this.comTransip = comTransip;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof PosCom))
			return false;
		PosCom castOther = (PosCom) other;

		return ((this.getComIndex() == castOther.getComIndex()) || (this
				.getComIndex() != null && castOther.getComIndex() != null && this
				.getComIndex().equals(castOther.getComIndex())))
				&& ((this.getComName() == castOther.getComName()) || (this
						.getComName() != null && castOther.getComName() != null && this
						.getComName().equals(castOther.getComName())))
				&& ((this.getComTransgateway() == castOther
						.getComTransgateway()) || (this.getComTransgateway() != null
						&& castOther.getComTransgateway() != null && this
						.getComTransgateway().equals(
								castOther.getComTransgateway())))
				&& ((this.getComTransapn() == castOther.getComTransapn()) || (this
						.getComTransapn() != null
						&& castOther.getComTransapn() != null && this
						.getComTransapn().equals(castOther.getComTransapn())))
				&& ((this.getComTransapnusr() == castOther.getComTransapnusr()) || (this
						.getComTransapnusr() != null
						&& castOther.getComTransapnusr() != null && this
						.getComTransapnusr().equals(
								castOther.getComTransapnusr())))
				&& ((this.getComTransapnpwd() == castOther.getComTransapnpwd()) || (this
						.getComTransapnpwd() != null
						&& castOther.getComTransapnpwd() != null && this
						.getComTransapnpwd().equals(
								castOther.getComTransapnpwd())))
				&& ((this.getComRemark() == castOther.getComRemark()) || (this
						.getComRemark() != null
						&& castOther.getComRemark() != null && this
						.getComRemark().equals(castOther.getComRemark())))
				&& ((this.getComManftppwd() == castOther.getComManftppwd()) || (this
						.getComManftppwd() != null
						&& castOther.getComManftppwd() != null && this
						.getComManftppwd().equals(castOther.getComManftppwd())))
				&& ((this.getComManftpusr() == castOther.getComManftpusr()) || (this
						.getComManftpusr() != null
						&& castOther.getComManftpusr() != null && this
						.getComManftpusr().equals(castOther.getComManftpusr())))
				&& ((this.getComMantel1() == castOther.getComMantel1()) || (this
						.getComMantel1() != null
						&& castOther.getComMantel1() != null && this
						.getComMantel1().equals(castOther.getComMantel1())))
				&& ((this.getComManport() == castOther.getComManport()) || (this
						.getComManport() != null
						&& castOther.getComManport() != null && this
						.getComManport().equals(castOther.getComManport())))
				&& ((this.getComManip() == castOther.getComManip()) || (this
						.getComManip() != null
						&& castOther.getComManip() != null && this
						.getComManip().equals(castOther.getComManip())))
				&& ((this.getComManapnpwd() == castOther.getComManapnpwd()) || (this
						.getComManapnpwd() != null
						&& castOther.getComManapnpwd() != null && this
						.getComManapnpwd().equals(castOther.getComManapnpwd())))
				&& ((this.getComManapnusr() == castOther.getComManapnusr()) || (this
						.getComManapnusr() != null
						&& castOther.getComManapnusr() != null && this
						.getComManapnusr().equals(castOther.getComManapnusr())))
				&& ((this.getComManapn() == castOther.getComManapn()) || (this
						.getComManapn() != null
						&& castOther.getComManapn() != null && this
						.getComManapn().equals(castOther.getComManapn())))
				&& ((this.getComMangateway() == castOther.getComMangateway()) || (this
						.getComMangateway() != null
						&& castOther.getComMangateway() != null && this
						.getComMangateway()
						.equals(castOther.getComMangateway())))
				&& ((this.getComTranstel3() == castOther.getComTranstel3()) || (this
						.getComTranstel3() != null
						&& castOther.getComTranstel3() != null && this
						.getComTranstel3().equals(castOther.getComTranstel3())))
				&& ((this.getComTranstel2() == castOther.getComTranstel2()) || (this
						.getComTranstel2() != null
						&& castOther.getComTranstel2() != null && this
						.getComTranstel2().equals(castOther.getComTranstel2())))
				&& ((this.getComTranstel1() == castOther.getComTranstel1()) || (this
						.getComTranstel1() != null
						&& castOther.getComTranstel1() != null && this
						.getComTranstel1().equals(castOther.getComTranstel1())))
				&& ((this.getComTransport() == castOther.getComTransport()) || (this
						.getComTransport() != null
						&& castOther.getComTransport() != null && this
						.getComTransport().equals(castOther.getComTransport())))
				&& ((this.getComTransip() == castOther.getComTransip()) || (this
						.getComTransip() != null
						&& castOther.getComTransip() != null && this
						.getComTransip().equals(castOther.getComTransip())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getComIndex() == null ? 0 : this.getComIndex().hashCode());
		result = 37 * result
				+ (getComName() == null ? 0 : this.getComName().hashCode());
		result = 37
				* result
				+ (getComTransgateway() == null ? 0 : this.getComTransgateway()
						.hashCode());
		result = 37
				* result
				+ (getComTransapn() == null ? 0 : this.getComTransapn()
						.hashCode());
		result = 37
				* result
				+ (getComTransapnusr() == null ? 0 : this.getComTransapnusr()
						.hashCode());
		result = 37
				* result
				+ (getComTransapnpwd() == null ? 0 : this.getComTransapnpwd()
						.hashCode());
		result = 37 * result
				+ (getComRemark() == null ? 0 : this.getComRemark().hashCode());
		result = 37
				* result
				+ (getComManftppwd() == null ? 0 : this.getComManftppwd()
						.hashCode());
		result = 37
				* result
				+ (getComManftpusr() == null ? 0 : this.getComManftpusr()
						.hashCode());
		result = 37
				* result
				+ (getComMantel1() == null ? 0 : this.getComMantel1()
						.hashCode());
		result = 37
				* result
				+ (getComManport() == null ? 0 : this.getComManport()
						.hashCode());
		result = 37 * result
				+ (getComManip() == null ? 0 : this.getComManip().hashCode());
		result = 37
				* result
				+ (getComManapnpwd() == null ? 0 : this.getComManapnpwd()
						.hashCode());
		result = 37
				* result
				+ (getComManapnusr() == null ? 0 : this.getComManapnusr()
						.hashCode());
		result = 37 * result
				+ (getComManapn() == null ? 0 : this.getComManapn().hashCode());
		result = 37
				* result
				+ (getComMangateway() == null ? 0 : this.getComMangateway()
						.hashCode());
		result = 37
				* result
				+ (getComTranstel3() == null ? 0 : this.getComTranstel3()
						.hashCode());
		result = 37
				* result
				+ (getComTranstel2() == null ? 0 : this.getComTranstel2()
						.hashCode());
		result = 37
				* result
				+ (getComTranstel1() == null ? 0 : this.getComTranstel1()
						.hashCode());
		result = 37
				* result
				+ (getComTransport() == null ? 0 : this.getComTransport()
						.hashCode());
		result = 37
				* result
				+ (getComTransip() == null ? 0 : this.getComTransip()
						.hashCode());
		return result;
	}

}